package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by lujw on 2017/6/18.
 */
@Entity
@Table(name = "hospital_device_token")
public class HospitalDeviceToken extends TXBYObject {

    /**
     * 手机系统版本
     */
    private String version;

    /**
     * 手机设备号
     */
    @Column(name = "token")@JSONField(name = "token")
    private String token;

    /**
     * 用户uid
     */
    private Integer uid;

    /**
     * 手机类型，安卓或苹果
     */
    private Integer client;

    /**
     * 修改时间
     */
    @Column(name = "mod_time")@JSONField(name = "mod_time")
    private Long mTime;

    public HospitalDeviceToken() {
        super();
        this.mTime = System.currentTimeMillis();
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getClient() {
        return client;
    }

    public void setClient(Integer client) {
        this.client = client;
    }

    public Long getmTime() {
        return mTime;
    }

    public void setmTime(Long mTime) {
        this.mTime = mTime;
    }
}
